import request from '@/utils/request.js'

const api_name = '/portal/category'

export function getParentList () {
  return request({
    url: `${api_name}/parent`,
    method: 'get'
  })
}

export function getCategoryList () {
  return request({
    url: `${api_name}`,
    method: 'get'
  })
}
